package cn.shenchao.utils;

import java.io.File;

public class BatchRename {
	public static void main(String[] args) {
		String fileDir = "D:\\BaiduYunDownload\\SpringMVC";
		File file = new File(fileDir);
		File[] listFiles = file.listFiles();
		for (File file2 : listFiles) {
			String name = file2.getName();
			name = name.replaceAll("(\\d+).+?尚硅谷_佟刚_SpringMVC_(.+)", "$1.$2");
			file2.renameTo(new File(fileDir,name));
		}
	}
}
